//
//  prototipoEcoFriendsViewController.m
//  prototipoEcoFriends
//
//  Created by mayraDonaji on 9/20/10.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import "prototipoEcoFriendsViewController.h"
#import "gastos.h"
#import "ahorros.h"
#import "viviero.h"
#import "consejos.h"
#import "configurarGastos.h"
#import "detalleConfGastos.h"
#import "ahorrosMes.h"
#import "misPlantas.h"
#import "nuevaPlanta.h"
#import "escribirConsejo.h"

@implementation prototipoEcoFriendsViewController

@synthesize gastos, ahorros, vivero, consejos;
@synthesize fetchedResultsController, managedObjectContext;


/*
// The designated initializer. Override to perform setup that is required before the view is loaded.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
        // Custom initialization
    }
    return self;
}
*/

/*
// Implement loadView to create a view hierarchy programmatically, without using a nib.
- (void)loadView {
}
*/


/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];
}
*/


/*
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/

-(IBAction) gastos :(id)sender{
	gastos * gasto = [[gastos alloc]initWithNibName: nil bundle:nil];
	gasto.managedObjectContext = self.managedObjectContext;
	gasto.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;	
	[self presentModalViewController:gasto animated:YES];
}

-(IBAction) ahorros :(id)sender{
	ahorros * ahorro = [[ahorros alloc]initWithNibName: nil bundle:nil];
	ahorro.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;	
	[self presentModalViewController:ahorro animated:YES];
	
}

-(IBAction) vivero :(id)sender{
	viviero * vive = [[viviero alloc]initWithNibName: nil bundle:nil];
	vive.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;	
	[self presentModalViewController:vive animated:YES];
}

-(IBAction) consejos :(id)sender{
	consejos * consejo = [[consejos alloc]initWithNibName: nil bundle:nil];
	consejo.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;	
	[self presentModalViewController:consejo animated:YES];
}

- (void)didReceiveMemoryWarning {
	// Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
	
	// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
	// Release any retained subviews of the main view.
	// e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}

@end
